<%@ page language="java" import="java.util.*,com.ncp.model.biz.product.*,com.ncp.model.dao.*,com.ncp.model.entity.product.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ArrayList listparent = (ArrayList)request.getAttribute("listparent");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ManagerBasic.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
	<script src="ckeditor/sample/sample.js" type="text/javascript"></script>
    <script type="text/javascript" src="pages/fckeditor/fckeditor.js"></script>
	  
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
      <base href="<%=basePath%>">
  
 <body>
 <p>产品增加操作：</p>
 <form action="ManagerBasicServlet" method="post" enctype="multipart/form-data" name="form_test">
 <table width="90%" height="300" border="0" align="center">
 <tr>
    <td height="50">产品种类：</td>
    <td colspan="3"><label for="select"></label>
    
        <select name="sort" id="select">
        <%for(int i=0;i<listparent.size();i++){ 
    	ProductSortBean psb = (ProductSortBean)listparent.get(i);

    %>
        <option value="<%=psb.getProductSortID() %>">
      <%=psb.getProductSortName() %>
      </option>
       <% }%>
        </select>
    </td>
    <td width="46%" rowspan="10">
    <div class="con content_2">
			<p style=" margin:20px; color:#666;">产品详细信息:</p>
			<div style="width:620px; height:560px; margin:20px; border:1px solid #CCC">
		内容:<script type="text/javascript">
				var oFCKeditor = new FCKeditor('cont');
				http://localhost:8080/fckeditor
				oFCKeditor.BasePath = "/NCP/pages/fckeditor/";
				oFCKeditor.Width="70%";
				oFCKeditor.Height="500";
				oFCKeditor.Value="编辑您的内容…";
				oFCKeditor.ToolbarSet="ncp";
				oFCKeditor.Config["CustomConfigurationsPath"] = "/NCP/pages/fckeditor/myconfig.js"
				oFCKeditor.Create();
			 </script><br/>
		</div>
		</div></td>
  </tr>
  <tr>
    <td height="30">产品名称</td>
    <td><label for="textfield"></label>
        <input type="text" name="ProductName" id="textfield" onblur="checkForm()"/></td>
  </tr>
  <tr>
    <td height="100">优惠价：(有两位小数的数)</td>
    <td><input type="text" name="RetailPrice" id="textfield3" /></td>
  </tr>
  <tr>
    <td height="100">市场价：(有两位小数的数)</td>
    <td><input type="text" name="MarketPrice" id="textfield4" /></td>
  </tr>
  <tr>
   <td height="30">产品批号：</td>
    <td><input type="text" name="ProductType" id="textfield5" /></td>
  </tr>
  <tr>
    <td height="100">产品折扣：( 如八折就输入  8)</td>
    <td><input type="text" name="ProductDiscount" id="textfield6" /></td>
  </tr>
  <tr>
    <td height="100">产品下架时间：(按时间格式 :2012-10-10)</td>
    <td><input type="text" name="EndTime" id="textfield7" /></td>
  </tr>
  <tr>
     <td height="100">产品总量：(产品总量,用整数)</td>
    <td><input type="text" name="CurrentPNumber" id="textfield8" /></td>
  </tr>
  <tr>
     <td colspan="2"><a href="UploadProductImgsServlet?PageNow=1">上传图片</a></td>
    
  </tr>
  <tr>
    <td height="50">
        <input type="submit" name="Submit" value="确定" id="Submit" /></td>
    <td><input type="reset" name="Submit2" value="重置" id="Submit2" /></td>
  </tr>
</table>
 </form>

  </body>
</html>
